function hook_pthread_create() {
    var pt_create_func = Module.findExportByName("libc.so", 'pthread_create');

    Interceptor.attach(pt_create_func, {
        onEnter: function (args) {
            // 是那个so文件调用我，创建线程
            var so_name = Process.findModuleByAddress(args[2]).name;
            if (so_name.indexOf("libDexHelper.so") != -1) {
                try {
                    Interceptor.replace(args[2], new NativeCallback(function () {
                        console.log('replace success');
                        return null;
                    }, 'void', ["void"]));
                } catch (e) {

                }

            }
        }, onLeave: function (retval) {
        }
    })
}

hook_pthread_create();

// frida -U  -l pthread_create.js -f  com.shanghaionstar --no-pause

// frida -U -f cn.dxy.medicinehelper -l .\load_so.js